put content
Type
command
Summary
Write the given (unicode) string to stdout, processing it for suitable output in an SGML content context.
Syntax
put [ unicode ] content <string>
Description
Use the put content command to write a string to stdout that contains HTML markup. This functions identically to 'put markup' except that '<', '>', '&' and '"' are encoded as named entities - <, >, & and ".
Parameters
Name | Type | Description |
---|---|---|
string | string | A string containing the HTML markup to output. If 'unicode' is not specified, then string is considered to be in the native text encoding for the platform. If unicode is specified, then string is considered to be in UTF-16. |
Examples
put content "<p>foobar</p>"
put unicode content uniEncode(tMyUTF8Markup, "UTF8")
# uniEncode() converts tMyUTF8Markup to UTF-16
Related
command: put header, put, put markup, put text, put binary
Compatibility and Support
Introduced
LiveCode 4.6.3
OS
mac
windows
linux
Platforms
server